module.exports = function main(km,waitTime) {
    let money = 0 ;
    if(km > 0 && km <= 2){
        money = 6;
    }
    else if(km > 2 && km <= 8){
        money = 6 + (km-2)*0.8;
    }
    else if(km > 8){
        money = 6 + 4.8 + (km-8)*1.2;
    }

    money += waitTime*0.25 ;
    money = Math.round(money) ;
    //四舍五入
    
    return money ;
};